package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_purchase_apply_file
 * 
 * @author ruoyi
 * @date 2022-01-11
 */
public class SysPurchaseApplyFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件id */
    private Long fileId;

    /** 采购申请id */
    @Excel(name = "采购申请id")
    private Long appId;

    /** 文件名字 */
    @Excel(name = "文件名字")
    private String fileName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** url路径 */
    @Excel(name = "url路径")
    private String url;

    /** 文件唯一标识 */
    @Excel(name = "文件唯一标识")
    private String fileUnique;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    /** 上传人名字 */
    @Excel(name = "上传人名字")
    private String uploadName;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setFileUnique(String fileUnique) 
    {
        this.fileUnique = fileUnique;
    }

    public String getFileUnique() 
    {
        return fileUnique;
    }
    public void setUploadTime(Date uploadTime) 
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime() 
    {
        return uploadTime;
    }
    public void setUploadName(String uploadName) 
    {
        this.uploadName = uploadName;
    }

    public String getUploadName() 
    {
        return uploadName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("appId", getAppId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("url", getUrl())
            .append("fileUnique", getFileUnique())
            .append("uploadTime", getUploadTime())
            .append("uploadName", getUploadName())
            .toString();
    }
}
